import request from '@/utils/request'
let lawServicePlatform = "lawServicePlatform";

// 用户注册
export function register(data) {
  return request({
    url: lawServicePlatform + "/index/registerForBuyer",
    method:"post",
    data   
  })
}

// 服务商注册
export function registerServiceProvider(data) {
  return request({
    url: lawServicePlatform + "/index/registerForServiceProvide",
    method:"post",
    data   
  })
}

// 登录
export function login(data) {
  return request({
    url: lawServicePlatform + '/index/login',
    method: 'post',
    data
  })
}



// （原有）注销
export function logout() {
  return request({
    url: 'lawServicePlatform/index/logout',
    method: 'post'
  })
}


// 获取当前登录账户信息
export function returnUserInformation() {
  return request({
    url: '/lawServicePlatform/common/returnUserInformation',
    method: 'post'
  })
}